package com.oa.pm.service;

import com.baomidou.mybatisplus.service.IService;
import com.joneying.common.web.response.Resp;
import com.oa.core.PageResult;
import com.oa.pm.dto.RegistrationListDTO;
import com.oa.pm.entity.Registration;
import com.oa.pm.vo.RegistrationListVO;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface IRegistrationService extends IService<Registration> {

    Resp add(String userId, String address, Integer form) throws ParseException;

    PageResult<RegistrationListVO> findRegistrationList(RegistrationListDTO registrationListDTO);

    RegistrationListVO getMyRegistration(String userId);

    Integer signOffHander(Integer hour, Integer minute);

    Integer checkInHander(Integer hour, Integer minute);

    Integer minuteDifference(Date currTime, Date lastReceiveTime);

    Integer completionHander(Integer hour, Integer minute);

}
